import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { WelcomeComponent } from './welcome.component';
import { NzButtonModule } from 'ng-zorro-antd/button';
import { TicTacToeComponent } from '../tic-tac-toe/tic-tac-toe.component';
const routes: Routes = [
  { path: '', component: WelcomeComponent },
  {
    path: "mychat",
    loadChildren: () =>
    import("../../mychat/mychat.module").then((mc) => mc.MychatModule),
  },
  {
    path: 'ticTacToe',component: TicTacToeComponent
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule,NzButtonModule]
})
export class WelcomeRoutingModule { }
